class WashMachine{
    public String brand; //品牌
    public String type; //型号
    public String weight; //重量
    public String length; //长
    public String width; //宽
    public String height; //高
    public String color; //颜色

    public void washClothes(){
        System.out.println("洗衣功能");
    }
    public void dryClothes(){
        System.out.println("脱水功能");
    }
    public void setTime(){
        System.out.println("定时功能");
    }
}
class Dog{
    public String name;
    public int age;
    public void barks(){
        System.out.println(name+"正在汪汪汪...");
    }
    public void eat(){
        System.out.println(name+"正在吃饭...");
    }
}

public class test {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.name="小y";
        dog.age= 5;
        dog.barks();
        dog.eat();

        System.out.println("------------");
        Dog dog2=new Dog();
        dog2.name="小米渣";
        dog2.age= 2;
        dog2.barks();
        dog2.eat();
    }

}
